// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Vant from 'vant'
import 'vant/lib/vant-css/index.css'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import store from './vuex/store'
import axiosInit from './axios/axios-init'
import './assets/css/my-mint.css'


Vue.config.productionTip = false
Vue.use(MintUI)
Vue.use(Vuex)

window.axios = axiosInit();
Vue.prototype.$http = window.axios;

router.beforeEach((to, from, next) => {
	if(to.meta.title) {
		document.title = to.meta.title
	}
	next()
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})


